'''
Author: LHY 2601958675@qq.com
Date: 2023-06-28 17:36:17
LastEditors: LHY
LastEditTime: 2023-07-14 12:13:15
Description: 
'''

import requests
import json
url = "https://fanyi.baidu.com/sug"


data = {'kw':input('你想要翻译什么？请输入吧')}

res = requests.post(data=data,url=url)
res.encoding = 'utf-8'
#res.text#字符串
print(res.json()['data'])#json